[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FCLOSE
. Summary
fclose(int <fh>);
. Description
The fclose functions closes the file represented by the file handle
<fh>, which must previously been opened for reading or writing with
the fopen function. If the file was opened for writing, any data
which is still buffered and waiting to be written out to disk is
written before the file is closed.
. Return Value
A return value of -1 indicates a problem closing the file.
. Example
int f;
f = fopen("test.dat", "w");
...
fclose(f);
See Also:
fopen
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson